// 富文本编辑器主题变量
// 这些变量可以在外部通过覆盖来自定义

// 亮色主题（默认）
.halo-rich-text-editor,
.theme-light .halo-rich-text-editor {
    // 主题色彩
    --editor-color-green: #4caf50;
    --editor-color-orange: #fa8c16;
    --editor-color-blue: #1890ff;
    --editor-color-volcano: #fa541c;
    --editor-color-pink: #eb2f96;
    --editor-color-geekblue: #2f54eb;
    --editor-color-lime: #a0d911;
    --editor-color-yellow: #fadb14;
    --editor-color-purple: #9373ee;
    --editor-color-red: #f5222d;
    --editor-color-grey: #aaaaaa;

    // 基础颜色
    --editor-primary-color: #9373ee;
    --editor-text-color: rgba(0, 0, 0, 0.85);
    --editor-text-color-secondary: rgba(0, 0, 0, 0.45);
    --editor-border-color: #f0f0f0;
    --editor-background-color: #ffffff;
    --editor-background-hover: rgba(0, 0, 0, 0.05);
    --editor-background-active: #f6f0ff;
    --editor-card-bg: #f5f5f5;

    // 阴影
    --editor-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --editor-box-shadow-light: 0 1px 4px rgba(0, 0, 0, 0.08);

    // 编辑器特定
    --editor-placeholder-color: #adb5bd;
    --editor-code-bg: #f5f5f5;
    --editor-dropdown-bg: #ffffff;

    // 表格相关
    --editor-table-border: #d8d8d8;
    --editor-table-header-bg: #f6f8fa;
    --editor-table-cell-bg: #ffffff;
    --editor-table-selected-border: #0065ff;
    --editor-table-resize-handle: #aaddff;
    --editor-table-hover-bg: #2584ff;
    --editor-table-shadow: rgba(0, 0, 0, 0.08);

    // 搜索高亮
    --editor-search-result-bg: rgba(255, 217, 0, 0.31);
    --editor-search-current-bg: #ffd900;

    // 拖拽手柄
    --editor-drag-handle-bg: #ffffff;
    --editor-drag-handle-icon: #111111;

    // 列布局
    --editor-column-border: #e7e9e8;

    // 详情折叠
    --editor-details-border: #e5e7eb;
    --editor-details-hover-bg: #e5e7eb;

    // 间隙光标
    --editor-gap-cursor: #000000;

    // 节点选中
    --editor-node-selected-border: #2f8ef4;

    // 范围选择
    --editor-range-selection-bg: rgba(27, 162, 227, 0.2);

    // 工具栏和按钮
    --editor-toolbar-bg: #ffffff;
    --editor-toolbar-border: #e5e7eb;
    --editor-button-hover-bg: #f3f4f6;
    --editor-button-active-bg: #e5e7eb;
    --editor-button-text: #4b5563;
    --editor-button-text-active: #111827;

    // 卡片和面板
    --editor-card-border: #e5e7eb;
    --editor-card-hover-bg: #f9fafb;
    --editor-panel-bg: #f3f4f6;

    // 输入框
    --editor-input-bg: #f9fafb;
    --editor-input-border: #d1d5db;
    --editor-input-focus-border: #3b82f6;
    --editor-input-text: #111827;

    // 分隔线
    --editor-separator-bg: #e2e8f0;

    // 特殊颜色
    --editor-add-icon-color: #4ccba0;
    --editor-delete-icon-color: #dc2626;
}

// 暗色主题
.theme-dark .halo-rich-text-editor {
    // 主题色彩
    --editor-color-green: #49aa19;
    --editor-color-orange: #d87a16;
    --editor-color-blue: #177ddc;
    --editor-color-volcano: #d84a1b;
    --editor-color-pink: #cf2f86;
    --editor-color-geekblue: #2b4acb;
    --editor-color-lime: #8bbb11;
    --editor-color-yellow: #d8bd14;
    --editor-color-purple: #9383f1;
    --editor-color-red: #d32029;
    --editor-color-grey: #aaaaaa;

    // 基础颜色
    --editor-primary-color: #9373ee;
    --editor-text-color: rgba(255, 255, 255, 0.85);
    --editor-text-color-secondary: rgba(255, 255, 255, 0.65);
    --editor-border-color: #303030;
    --editor-background-color: #1f1f1f;
    --editor-background-hover: rgba(255, 255, 255, 0.05);
    --editor-background-active: #28253d;
    --editor-card-bg: #262626;

    // 阴影
    --editor-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    --editor-box-shadow-light: 0 1px 4px rgba(0, 0, 0, 0.32);

    // 编辑器特定
    --editor-placeholder-color: #6b6b6b;
    --editor-code-bg: #262626;
    --editor-dropdown-bg: #1f1f1f;

    // 表格相关
    --editor-table-border: #434343;
    --editor-table-header-bg: #2a2a2a;
    --editor-table-cell-bg: #1f1f1f;
    --editor-table-selected-border: #177ddc;
    --editor-table-resize-handle: #177ddc;
    --editor-table-hover-bg: #177ddc;
    --editor-table-shadow: rgba(0, 0, 0, 0.3);

    // 搜索高亮
    --editor-search-result-bg: rgba(216, 189, 20, 0.31);
    --editor-search-current-bg: #d8bd14;

    // 拖拽手柄
    --editor-drag-handle-bg: #1f1f1f;
    --editor-drag-handle-icon: #ffffff;

    // 列布局
    --editor-column-border: #434343;

    // 详情折叠
    --editor-details-border: #434343;
    --editor-details-hover-bg: #2a2a2a;

    // 间隙光标
    --editor-gap-cursor: #ffffff;

    // 节点选中
    --editor-node-selected-border: #177ddc;

    // 范围选择
    --editor-range-selection-bg: rgba(23, 125, 220, 0.2);

    // 工具栏和按钮
    --editor-toolbar-bg: #1f1f1f;
    --editor-toolbar-border: #434343;
    --editor-button-hover-bg: #2a2a2a;
    --editor-button-active-bg: #3a3a3a;
    --editor-button-text: #b0b0b0;
    --editor-button-text-active: #ffffff;

    // 卡片和面板
    --editor-card-border: #434343;
    --editor-card-hover-bg: #2a2a2a;
    --editor-panel-bg: #2a2a2a;

    // 输入框
    --editor-input-bg: #2a2a2a;
    --editor-input-border: #434343;
    --editor-input-focus-border: #177ddc;
    --editor-input-text: #ffffff;

    // 分隔线
    --editor-separator-bg: #434343;

    // 特殊颜色
    --editor-add-icon-color: #4ccba0;
    --editor-delete-icon-color: #dc2626;
}